package com.example.conusmer.common


class ApiResponse<T>(
    val status: Int,
    val msg: String,
    val data: T? = null
)

fun <T> successReturn(data: T, message: String = "success"): ApiResponse<T> = ApiResponse(0, message, data)

fun errorReturn(code: Int, message: String): ApiResponse<Nothing> = ApiResponse(code, message, null)